<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="renderer" content="webkit">
  <title>EZOPEN播放协议</title>
  <style>
    body {
      margin: 0;
    }

    #url {
      width: 100%;
    }

    .btn-container {
      margin: 10px;
    }
 
    #myPlayer {
      width: 100%;
    }
  </style>
  <script src="../../js/ezuikit.js"></script>
  <script src="../../js/jquery.min.js"></script>
</head>

<body> 
    <!-- ezopen://open.ys7.com/f01018a141094b7fa138b9d0b856507b[.hd].live.[rtmp|hls|ws|flv|m3u8] http://hls.open.ys7.com/openlive/f01018a141094b7fa138b9d0b856507b.hd.m3u8-->
  <textarea id="url" placeholder="这里输入直播地址"></textarea>
  <div class="btn-container">
    <button id="init">初始化播放</button>
    <button id="stop">结束</button>
  </div>
 
  <video 
    id="myPlayer" 
    autoplay
    src="http://hls.open.ys7.com/openlive/17f1a02f2c0b4677a5b3ed62a5e98bb8.hd.m3u8"  
    controls 
    playsInline 
    webkit-playsinline
  >
  </video>

  <script>
  	var player = new EZUIKit.EZUIPlayer('myPlayer');
    /*$('#init').click(function () {
      var url = $('#url').val().trim();
      $('#myPlayer').attr("src", 'http://hls.open.ys7.com/openlive/17f1a02f2c0b4677a5b3ed62a5e98bb8.hd.m3u8');
      
      // 日志
      player.on('log', log);

      function log(str) {
        var div = document.createElement('DIV');
        div.innerHTML = (new Date()).Format('yyyy-MM-dd hh:mm:ss.S') + JSON.stringify(str);
        document.body.appendChild(div);
      }
      $("#stop").click(function () {
        player.stop();
      })
    });*/
  </script>
</body>

</html>